using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Xiqu : MonoBehaviour
{
    private Slot[] slots;
    string xuquname="";
    private void Awake()
    {
        slots = transform.GetComponentsInChildren<Slot>();
    }
    private void Update()
    {
        foreach (var item in slots)
        {
           if (item.Item == null)
            return;
        }
        for(int i=0;i<7;i++)
        {
            if(slots[i].Item.category!= Category.fruit)
            {
                return;
            }
        }
        for (int j = 7; j < 14; j++)
        {
            if (slots[j].Item.category != Category.vegetable)
            {
                return;
            }
        }
        GameFacade.Instance.uIset.ButtonAll.GetChild(0).gameObject.SetActive(true);
        
    }
}
